import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

public class ProvicerRun {
    public static void main(String[] args) throws IOException {
        //创建spring容器
        ApplicationContext ac = new ClassPathXmlApplicationContext("spring-provider.xml");
        //启动spring
        ((ClassPathXmlApplicationContext )ac).start();
        //使主线程阻塞
        System.in.read();




    }
}
